package design.patterns.observe;

/**
 * @author daxue0929
 * @date 2023/4/25
 */

public class WeiXinUser implements Observer {

    private String name;

    public WeiXinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
